package com.tjl.vending_machine.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @auther CodeGenerator
 * @create 2021-02-20 15:46:35
 * @describe 实体类
 */
@Data
@TableName("order")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.UUID)
                private String id;

    @ApiModelProperty(value = "用户id")
    @TableField("customer_id")
        private String customerId;

    @ApiModelProperty(value = "商品详情")
    @TableField("product_title")
        private String productTitle;

    @ApiModelProperty(value = "商品描述详情")
    @TableField("product_description")
        private String productDescription;

    @ApiModelProperty(value = "商品价格，单位分")
    @TableField("product_price")
        private Integer productPrice;

    @ApiModelProperty(value = "商品图片")
    @TableField("product_img_url")
        private String productImgUrl;

    @ApiModelProperty(value = "是否删除：0否，1是")
    @TableField("is_delete")
        private Integer isDelete;

    @ApiModelProperty(value = "订单状态：10：待支付，20：支付成功，30：完成订单，40：取消订单")
    @TableField("order_status")
        private Integer orderStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
        private Date createTime;

    @ApiModelProperty(value = "支付时间")
    @TableField("pay_time")
        private Date payTime;

    @ApiModelProperty(value = "完成订单时间")
    @TableField("success_time")
        private Date successTime;

    @ApiModelProperty(value = "取消订单时间")
    @TableField("close_time")
        private Date closeTime;


    }